#ifdef WX_PRECOMP
#include "wx_pch.h"
#else
#include <wx/wx.h>
#endif //WX_PRECOMP

#include "cell_data_item.h"

CellDataItem::CellDataItem()
{
  Clear();
}

void CellDataItem::Clear()
{
  Type = CELL_NONE;
  ComponentID = ComponentLevel = MinComponentLevel = MaxComponentLevel = 0;
  RaceID = 0;
  Selected = false;
}

bool operator==(const CellDataItem& a, const CellDataItem& b)
{
  return a.Type == b.Type && a.ComponentID == b.ComponentID && a.ComponentLevel == b.ComponentLevel && a.RaceID == b.RaceID;
}

bool operator!=(const CellDataItem& a, const CellDataItem& b)
{
  return !(a == b);
}

bool CellDataItem::IsEmpty() const
{
  return (ComponentID <= 0);
}
